var app = getApp();

var host = 'https://jinyouxuan.woaicj.com/api';
// var host = 'http://jinyouxuan.cn:8022/api'; //测试地址


var config = {
	imageUrl: 'http://jinyouxuan.woaicj.com/',
	// imageUrl: 'http://jinyouxuan.cn:8022/',  //测试地址
	//图片上传位置
	imgUpload: host + '/Common/upload',
	//一键绑定
	wx_login: host + '/accredit/sessionkey',
	//绑定手机号
	wx_phone: host + '/accredit/openid',
	//查看是否存在该用户
	user_find: host + '/accredit/user_find',
	//发送验证码
	send_sms: host + '/sms/send',
	//验证验证码
	verify_sms: host + '/sms/check',
	//测试
	test: host + '/index/index',
	//创建订单
	to_pay: host + '/pay/create_order',

  get_index_configs: host + '/Common/index_config',
	get_school_list: host + '/Schoolinfo/getSchoolList', //获取校园列表
	get_classes_list: host + '/Schoolinfo/getClassList', //获取课程列表
	get_studentclasses_list: host + '/Schoolinfo/getStudentClassList', //获取学生选择班级信息列表
	get_grade_list: host + '/Schoolinfo/getGradeList', //获取年级列表
	get_classese_detail: host + '/Schoolinfo/getClassDetail', //获取班级详情
	get_add_childdata: host + '/Schoolinfo/addChildData', //添加学生信息
	get_student_list: host + '/Schoolinfo/getStudentList', //获取学生列表
	add_enroll: host + '/Schoolinfo/addEnrollData', //添加订单【课程】
	del_student: host + '/Schoolinfo/delChildData', //删除学生
	get_order_list: host + '/Schoolinfo/getOrderList', //获取订单列表
	get_snacks_order_list: host + '/Snacks/getOrderList', //获取零时用餐用餐记录
	set_snacks_leave: host + '/Snacks/setLeave',//零时用餐请假
	update_order_status: host + '/Schoolinfo/updateEnrollStatus', //更新订单状态
	get_parentage_list: host + '/Schoolinfo/getParentageList', //获取【亲子关系】列表
	get_order_num: host + '/Schoolinfo/getOrderNum', //获取订单编号
	checkenrollstudent: host + '/Schoolinfo/checkEnrollStudent', //校验人数是否超出
	getMealsData: host + '/Meals/getMealsData', //获取餐费信息
	add_meals_enroll: host + '/Meals/addMealsEnroll', //添加订单【订餐】
  getMessageList: host + '/Message/getMessageList', //获取系统信息
	getMessageDetail: host + '/Message/getMessageDetail', //获取系统信息-详情
	getMessageTitleList: host + '/Message/getMessageTitleList', //获取系统标题信息
	getMessageCount: host + '/Message/getMessageCount', //获取信息总数
	getFoodSchoolList: host + '/Meals/getFoodSchoolList', //菜品学校列表
	getFoodList: host + '/Meals/getFoodList', //菜品介绍列表
	getFoodDetail: host + '/Meals/getFoodDetail', //菜品详情
	getStudentLeaveList: host + '/StudentLeave/getLeaveList', //获取【学生】请假列表
  addStudentLeaveData: host + '/StudentLeave/addLeaveData', //添加【学生】请假
  myLeaveForDinner: host + '/Leave_for_dinner/myLeaveForDinner', //获取【学生】请假订单列表
	getLeaveStudentList: host + '/StudentLeave/getLeaveStudentList', //获取【学生】列表
	getLeaveCurriculumList: host + '/StudentLeave/getLeaveCurriculumList', //获取【学生课程】列表
	getDynamicList:host + '/Classdynamic/getDynamicList', //课堂动态
	getStudentCoursearrangeList:host + '/Studentleave/getStudentCoursearrangeList', //获取学生 请假课节
	getMySchedule:host + '/Schoolinfo/getMySchedule', //获取我的课程表
  getMyScheduleSpot:host + '/Schoolinfo/getMyScheduleSpot', //获取我的课程表 时间区间
  setSnacksOrder: host + '/Snacks/setSnacksOrder',//零时用餐下单
  getSnacksMoney: host + '/Snacks/getSnacksMoney',//获取零时用餐费用

	//教师端
	getTeacherCurriculumList: host + '/Teacherleave/getTeacherCurriculumList', //获取教师管理课程
	getTeacherCoursearrangeList: host + '/Teacherleave/getTeacherCoursearrangeList', //获取教师管理课节
	getTodayCourse: host + '/Curriculum/getTodayCourse', //获取今日课程
	getMyCourse: host + '/Curriculum/getMyCourse', //获取我的课程
	getCourseDetail: host + '/Curriculum/getCourseDetail', //获取课程详情
	getTeachLeaveList: host + '/Teacherleave/getLeaveList', //获取【教师】请假列表
	addTeachLeaveData: host + '/Teacherleave/addLeaveData', //添加【教师】请假
	getCardReplacementList: host + '/Teacherleave/getCardReplacementList', //获取【教师】补卡列表
	addCardData: host + '/Teacherleave/addCardData', //添加【教师】补卡
	rollCall: host + '/Curriculum/rollCall', //学生点名
	pushRollCall: host + '/Curriculum/pushRollCall', //提交学生点名
	getMyCourseDateList: host + '/Curriculum/getMyCourseDateList', //获取我的课程表 上课日期

	checkAttend: host + '/Attend/checkAttend', //校验是否有打卡
	checkAttendAddr:host + '/Attend/checkAttendAddr', //校验到地点可以打卡
	goAttend: host + '/Attend/goAttend', //去打卡
	downAttend: host + '/Attend/downAttend',//取消打卡
	attendList: host + '/Attend/attendList', //考勤统计
	pushDynamic:host + '/Classdynamic/pushDynamic', //发布动态
	getAttendCount:host + '/Attend/getAttendCount', //获取当月打卡总数
	getIncome:host + '/Teacherincome/getIncome', //获取收入信息
	getPhone:host + '/Schoolinfo/getPhone', //获取客服电话
	getAttendDataList:host+'/attend/getAttendDataList',  //获取考勤日期
	//督导端
	getStudentAttendList:host + '/Supervise/getStudentAttendList',	//获取学生考勤统计
	getAttendError:host+'/Supervise/getAttendError',//获取学生考勤统计-异常详情
	updateStudentLeave:host+'/Supervise/updateStudentLeave',//审批学生请假
	getTeachAttendList:host+'/Supervise/getTeachAttendList',	//老师今日课程
	getAttendCardList:host+'/Supervise/getAttendCardList',	//老师今日课程统计
	teacherApproval:host+'/Supervise/teacherApproval',	//考勤审批
	teacherApprovalDetail:host+'/Supervise/teacherApprovalDetail',//考勤审批详情
  dGoApprove:host+'/Supervise/dGoApprove',	//审批-教师请假+打卡
  getAssistList : host + '/Growth/getGrowthList', //获得使用说明列表
  getAssistDetail : host + '/Growth/getGrowthDetail', //获得使用说明详情
  getEnrollList : host + '/Enroll/getEnrollList', //获得使用报名列表
  getEnrollDetail : host + '/Enroll/getEnrollDetail', //获得使用报名详情
  addLeaveForDinner : host + '/Leave_for_dinner/addLeave', //添加订单请假
  totalDinner : host + '/Leave_for_dinner/totalDinner',//根据日期获取用餐情况
  dinnerApprovalList : host + '/Leave_for_dinner/dinnerApprovalList',//审批请假列表
  dinnerLeaveDetail : host + '/Leave_for_dinner/dinnerLeaveDetail',//审批请假详情
  updateDinnerLeave : host + '/Leave_for_dinner/updateDinnerLeave',//审批请假详情
  getSchoolData:host+'/Supervise/getSchoolData', //获取学校+学期信息
  getCurriculumDetail:host+'/Supervise/getCurriculumDetail',  //获取班级详情
};
module.exports = config
